xen: return a per-mapping error from XENMEM_add_to_physmap_range.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 17 Jan 2013 16:48:23 +0000 (16:48 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 17 Jan 2013 16:48:23 +0000 (16:48 +0000)
commit550d4d96d7c8c8b628979a4fda0fb438304afcbb
tree29d751b9d68ae697b6a7a64e3ec79e7365c6c244
parent3a55ef6cf7f70c758c7ae9943de14b02f6dac6be
xen: return a per-mapping error from XENMEM_add_to_physmap_range.

Since ARM and PVH dom0 kernel use this to map foreign domain pages
they could in the future hit paged out or shared pages etc and
therefore need to propagate which frames are -ENOENT and which failed
for some other reason.

We have not yet released a version of Xen with this particular
hypercall subop so we can change the interface without worrying about
compatibility (I think/hope).

This would be used by the privcmd driver, in particular it relates to
Mats' patch "improve performance of MMAPBATCH_V2."

NB I have only implemented the ARM side since the PVH side isn't in
tree yet.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Mats Petersson <mats.petersson@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c
xen/include/public/memory.h